<?php

/**
* @current cmsusers.php
* @author   caoqicheng <caoqicheng@haibao.com>
* @date 2017年2月22日 上午9:41:03
*/
namespace haibao\jiepai\model\data\user;

class CmsUsers extends \haibao\jiepai\model\data\Base{
	
	/**
	 * 删除时置为-1，默认是0
	 * 是否是删除
	 */
	const FLAG_IS = 0;
	const FLAG_DEL = -1;
	
	/**
	 * 用户状态 0.正常，1.禁言，2.封号 状态
	 * @var unknown
	 */
	const STATUS_NORMAL = 0;
	const STATUS_BAN = 1;
	const STATUS_CLOSE = 2;
	
    public $NickName;
    
    public $PhoneNumber;
    
    public $AvatarID;

    public $Email;
    
    public $HotScore;
    
    public $Description;
    
    public $Sid;
    
    public $LastLoginSid;
    
    public $Message;
    
    public $LastLoginDevice;
    
    public $Title;
    
    public $Status;
    
    public $Flag;
    
    public $RegisterType;
    
    public $OpenId;
    
    public $CreateTime;

    public $Avatar;

    public $DeviceName;

    public $IsFirstLogin;
    
    public function __construct(){
        parent::__construct();
        $this->setPrimaryKey('Id',false);
        $this->setColumnName('Id', 'UserID');

        $this->stringField('NickName', 'NickName');
        $this->stringField('PhoneNumber', 'PhoneNumber');
        $this->intField('AvatarID', 'AvatarID');
        $this->stringField('Email', 'Email');
        $this->intField('HotScore', 'HotScore');
        $this->stringField('Description', 'Description');
        $this->stringField('Sid', 'Sid');        
        $this->stringField('LastLoginSid', 'LastLoginSid');
        $this->stringField('Message', 'Message');
        $this->stringField('LastLoginDevice', 'LastLoginDevice');
        $this->stringField('Title', 'Title');
        $this->intField('Status', 'Status');
        $this->intField('Flag', 'Flag');
        $this->stringField('RegisterType', 'RegisterType');
        $this->stringField('OpenId', 'OpenId');
        $this->dateField('CreateTime', 'CreateTime');
      
        $this->setTableName('cms_users');
    }
}

